package com.ym.medical.domain.param;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.ConsultSummaryEntity;
import com.ym.medical.enums.CouponDiscountEnum;
import com.ym.medical.enums.CouponTypeEnum;
import com.ym.medical.enums.DoctorServiceItemEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * ComputerName:LAPTOP-6GI4HOI6
 * Author:625
 * Date: 2019-05-17
 * Time: 13:49:25
 * Comment:查询扩展工具类
 */
@Data
@Builder
@ApiModel(value = "咨询总结")
public class ConsultSummaryParam extends BeanCovert<ConsultSummaryEntity> {

    @ApiModelProperty("主键")
    private Long id;

    /**
     * 咨询室主键
     */
    @ApiModelProperty("咨询室主键")
    private Long courId;

    /**
     * 可能的疾病
     */
    @ApiModelProperty("可能的疾病")
    private String possDisease;

    /**
     * 复诊时间
     */
    @ApiModelProperty("复诊时间")
    private Date furtherTime;

    /**
     * 处理意见
     */
    @ApiModelProperty("处理意见")
    private String handlingOpinions;

    /**
     * 冶疗建议
     */
    @ApiModelProperty("冶疗建议")
    private String recommendations;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty(notes = "优惠券id")
    private Long couponId;

    @ApiModelProperty(notes = "优惠券类型")
    @JsonSerialize(converter = CouponTypeEnum.Covert.class)
    private String theType;

    @ApiModelProperty(notes = "优惠券折扣比例")
    @JsonSerialize(converter = CouponDiscountEnum.Covert.class)
    private String discount;

    @ApiModelProperty(notes = "优惠券适用对象")
    @JsonSerialize(converter = DoctorServiceItemEnum.Covert.class)
    private String toSb;

}
